import os
import sys
import csv

# BASE_DIR = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
# sys.path.append(BASE_DIR)

# CURRENT_DIR = os.path.dirname(os.path.abspath(__file__))
# sys.path.append(CURRENT_DIR)
from PlatformLayer.function.func_vague_search.Class_VagueSearch import ChooseSourcelist, Check_Choose, Vague

def vaguesearch():
    print('********> 功能：软件包模糊搜索 <********')
    # -------- 选择模糊搜索包时候所用的源地址文件 --------
    sourcelistfile = ChooseSourcelist.choose()
    # -------- 检查该源地址文件的所有Packages是否存在 --------
    Check_Choose.check_sourcelistfile_exist(sourcelistfile)
    Vague.search(sourcelistfile)

